package edu.gdin.ecommerce.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TFunc entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_func", catalog = "ecommerce")
public class Func implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 177496381098626732L;
	private Integer funcId;
	private Integer parentId;
	private Integer type;
	private String name;
	private String url;
	private String funcDesc;

	// Constructors

	/** default constructor */
	public Func() {
	}

	/** full constructor */
	public Func(Integer parentId, Integer type, String name, String url,
			String funcDesc) {
		this.parentId = parentId;
		this.type = type;
		this.name = name;
		this.url = url;
		this.funcDesc = funcDesc;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "FUNC_ID", unique = true, nullable = false)
	public Integer getFuncId() {
		return this.funcId;
	}

	public void setFuncId(Integer funcId) {
		this.funcId = funcId;
	}

	@Column(name = "PARENT_ID", nullable = false)
	public Integer getParentId() {
		return this.parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	@Column(name = "TYPE", nullable = false)
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "NAME", nullable = false, length = 50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "URL", nullable = false, length = 100)
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "FUNC_DESC", length = 200)
	public String getFuncDesc() {
		return this.funcDesc;
	}

	public void setFuncDesc(String funcDesc) {
		this.funcDesc = funcDesc;
	}

}